import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick 2.12

Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")

    Image {
        id: img
        visible: false
        source: "qrc:///boom.png"
    }

    SpriteSequence {
        id: sequence
        width: img.width/4
        height: img.height/5
        interpolate: false;
        running: true;
        scale: 0.5      //有点模糊 缩放图片
        sprites: [
            Sprite{
                name: "left";
                source: img.source
                duration:3*1000
                frameCount: 15;
                frameY: img.height/5;
                frameWidth: sequence.width
                frameHeight: sequence.height
                frameRate: 10;
            }
        ]
    }

    Rectangle{
        color: "transparent"
        border.color: "red"
        border.width: 1
        anchors.fill: sequence
    }

}
